<div class="row-fluid">
	<div class="span11">
	    <h1 class="text-center"><?php echo __("Feed"); ?></h1>
	</div>
	<div class="span11">
		<a href="<?php echo $this->webroot;?>Feed/index/soccerfixtures">soccerfixtures</a> - 
		<a href="<?php echo $this->webroot;?>Feed/index/soccerhistory">soccerhistory</a>
	</div>
	<div class="span11">
        <?php if (isset($feeds) && count($feeds)>0) { ?>
            <table class="table table-hover">
	              <thead>
	                <tr>
	                  <th></th>
	                  <th><?php echo  __("id"); ?></th>
	                  <th><?php echo __("tipo"); ?></th>
	                  <th><?php echo __("url"); ?></th>
	                  <th><?php echo __("data import"); ?></th>
	                  <th><?php echo __("percentuale"); ?></th>
	                  <th><?php echo __("stato"); ?></th>
	                  <th><?php echo __("errore"); ?></th>
	                  <th></th>
	                </tr>
	              </thead>
	              <tbody>
	                  <? foreach ($feeds as $key => $feed) { ?>
		              	<tr>
		                  <td><?php echo $this->Acl->link("<i class='icon-th'></i>",array("controller" => "Import", "action" => "feed", $feed["Feed"]["id"]), array('class'=>'btn','escape'=>false));  ?> </td>
		                  <td><?php echo $feed["Feed"]["id"]; ?></td>
		                  <td><?php echo $feed["Feed"]["type"]; ?></td>
		                  <td><?php echo $feed["Feed"]["url"]; ?></td>
		                  <td><?php echo $feed["Feed"]["dt_import"]; ?></td>
		                  <td><?php echo $feed["Feed"]["perc"]; ?></td>
		                  <td><?php echo $feed["Feed"]["state"]; ?></td>
		                  <td><?php echo $feed["Feed"]["error"]; ?></td>
		                  <td>
							<?php  echo $this->Acl->link(__("Importa"), "/Import/".$feed["Feed"]["type"]."/".$feed["Feed"]["id"], array("tabindex"=>-1, "role"=>"menuitem"),null,null,null,false);  ?>
		                  </td>
		                </tr>
    					<?php } ?>
	              </tbody>
	        </table>  
        <?php }else{ ?>
                <label class="text-center"><i class="icon-frown"></i> Non ci sono feed caricati.</label>       
        <?php }?>
	</div>
</div>